package com.htudata.user.pojo.po;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
@Data
public class User implements Serializable {
  private static final long serialVersionUID = -4040841265561216702L;
  
  private long userId;
  
  private String pswd;
  
  private String name;
  
  private int sex;
  
  private String mobile;
  
  private LocalDateTime registerTime;
  
  private String lastLogin;
  
  private LocalDateTime createTime;
  
  private LocalDateTime updateTime;
  
  private String email;
  
  private String company;
  
  private String areaCode;
  
  private String descpt;
  
  private int isInternal;
  
  private long roleId;
  
  private int roleType;
  
  private String roleName;
  
  private String provCode;
  
  private String cityName;
  
  private String provName;

  public boolean equals(Object o) {
    if (o == this)
      return true; 
    if (!(o instanceof User))
      return false; 
    User other = (User)o;
    if (!other.canEqual(this))
      return false; 
    if (getUserId() != other.getUserId())
      return false; 
    Object this$pswd = getPswd(), other$pswd = other.getPswd();
    if ((this$pswd == null) ? (other$pswd != null) : !this$pswd.equals(other$pswd))
      return false; 
    Object this$name = getName(), other$name = other.getName();
    if ((this$name == null) ? (other$name != null) : !this$name.equals(other$name))
      return false; 
    if (getSex() != other.getSex())
      return false; 
    Object this$mobile = getMobile(), other$mobile = other.getMobile();
    if ((this$mobile == null) ? (other$mobile != null) : !this$mobile.equals(other$mobile))
      return false; 
    Object this$registerTime = getRegisterTime(), other$registerTime = other.getRegisterTime();
    if ((this$registerTime == null) ? (other$registerTime != null) : !this$registerTime.equals(other$registerTime))
      return false; 
    Object this$lastLogin = getLastLogin(), other$lastLogin = other.getLastLogin();
    if ((this$lastLogin == null) ? (other$lastLogin != null) : !this$lastLogin.equals(other$lastLogin))
      return false; 
    Object this$createTime = getCreateTime(), other$createTime = other.getCreateTime();
    if ((this$createTime == null) ? (other$createTime != null) : !this$createTime.equals(other$createTime))
      return false; 
    Object this$updateTime = getUpdateTime(), other$updateTime = other.getUpdateTime();
    if ((this$updateTime == null) ? (other$updateTime != null) : !this$updateTime.equals(other$updateTime))
      return false; 
    Object this$email = getEmail(), other$email = other.getEmail();
    if ((this$email == null) ? (other$email != null) : !this$email.equals(other$email))
      return false; 
    Object this$company = getCompany(), other$company = other.getCompany();
    if ((this$company == null) ? (other$company != null) : !this$company.equals(other$company))
      return false; 
    Object this$areaCode = getAreaCode(), other$areaCode = other.getAreaCode();
    if ((this$areaCode == null) ? (other$areaCode != null) : !this$areaCode.equals(other$areaCode))
      return false; 
    Object this$descpt = getDescpt(), other$descpt = other.getDescpt();
    if ((this$descpt == null) ? (other$descpt != null) : !this$descpt.equals(other$descpt))
      return false; 
    if (getIsInternal() != other.getIsInternal())
      return false; 
    if (getRoleId() != other.getRoleId())
      return false; 
    if (getRoleType() != other.getRoleType())
      return false; 
    Object this$roleName = getRoleName(), other$roleName = other.getRoleName();
    if ((this$roleName == null) ? (other$roleName != null) : !this$roleName.equals(other$roleName))
      return false; 
    Object this$provCode = getProvCode(), other$provCode = other.getProvCode();
    if ((this$provCode == null) ? (other$provCode != null) : !this$provCode.equals(other$provCode))
      return false; 
    Object this$cityName = getCityName(), other$cityName = other.getCityName();
    if ((this$cityName == null) ? (other$cityName != null) : !this$cityName.equals(other$cityName))
      return false; 
    Object this$provName = getProvName(), other$provName = other.getProvName();
    return !((this$provName == null) ? (other$provName != null) : !this$provName.equals(other$provName));
  }
  
  protected boolean canEqual(Object other) {
    return other instanceof User;
  }

}
